home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DBVGAL17.ARJ / SRC_ASM.ARJ / NORMAL.ASM < prev    next >
Assembly Source File  |  1992-01-25  |  717b  |  32 lines

  1.         name    normal
  2.         ; char huge *normalize(char far *);
  3.         ;
  4. ARGS    equ     word ptr [bp+08]
  5. ARGO    equ     word ptr [bp+06]
  6. NORMAL_TEXT     segment byte public 'CODE'
  7.         public  _normalize
  8.         assume  cs:NORMAL_TEXT
  9. _normalize      proc    far
  10.         push    bp
  11.         mov     bp,sp
  12. ; Line 8
  13.         mov     dx,ARGS
  14.         mov     ax,ARGO
  15. ; Line 9
  16.         cmp     ax,15
  17.         jbe     @1      ;       if the offset's less than 16, out
  18. ; Line 10
  19.         mov     cx,4
  20.         shr     ax,cl
  21.         add     dx,ax
  22.         mov     ax,ARGO
  23.         and     ax,0fh
  24. @1:
  25.         pop     bp
  26.         ret     
  27. _normalize      endp
  28. NORMAL_TEXT     ends
  29.         end
  30. 
  31.  
  32.